/**
 * Created with JetBrains WebStorm.
 * User: kane
 * Date: 13-2-28
 * Time: 下午1:10
 * To change this template use File | Settings | File Templates.
 */
var cronJob = require('cron').CronJob;
var job = new cronJob({
    cronTime: '00 00 * * * *',
    onTick: function() {
        logger.info("job");
    },
    start: false
    //timeZone: "America/Los_Angeles"
});

var job2 = new cronJob({
    cronTime: '00 22 13 * * *',
    onTick: function() {
        logger.info("job2");
    },
    start: false
    //timeZone: "America/Los_Angeles"
});

exports.start = function(){
    job.start();
    job2.start();
}